package net.wanho.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * Author：汤小洋
 * Date：2025-09-03 11:30
 * Description：<描述>
 */
@WebFilter("/hello")
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("MyFilter过滤器在调用目标资源之前，进行处理操作。。。。。。。。。。。。。");

        filterChain.doFilter(servletRequest, servletResponse);

        System.out.println("MyFilter过滤器在调用目标资源之后，进行处理操作。。。。。。。。。。。。。");
    }
}
